#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#define N 3
int main(void)
{
	int i, j;
	int _a[N][N] = { 0 };
	srand(time(NULL));
	for (i = 0; i < N; i++)
	{
		for (j = 0; j < N; j++)
		{
			_a[i][j] = rand() % 100 + 1;
			printf("%5d\t", _a[i][j]);
		}
		printf("\n");
	}
	printf("Look at it\n");
	for (i = 0; i < N; i++)
	{
		for (j = 0; j < N; j++)
        {
			printf("%5d", _a[j][i]);
		 }
		printf("\n");
	}
}

















